<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/lib/html5.js"></script>
<script type="text/javascript" src="/lib/respond.min.js"></script>
<script type="text/javascript" src="/lib/PIE_IE678.js"></script>
<![endif]-->
<link href="/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>3D饼状图</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 管理员统计 <span class="c-gray en">&gt;</span> 3D饼状图 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="pd-20">
	<div id="container" style="min-width:700px;height:400px"></div>
</div>
<script type="text/javascript" src="/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="/js/H-ui.js"></script>
<script type="text/javascript" src="/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/lib/Highcharts/4.1.7/js/highcharts.js"></script>
<script type="text/javascript" src="/lib/Highcharts/4.1.7/js/modules/exporting.js"></script>
<script type="text/javascript" src="/lib/Highcharts/4.1.7/js/highcharts-3d.js"></script>
<body>
    <s:iterator value="count.keySet()" id="key">
        <%--<input type="hidden"  name="count" value="${count.get(key)}"/>--%>
        <span1 id="${key}" name="${count.get[key]}"></span1>
    </s:iterator>

</body>

<script type="text/javascript">
﻿﻿$(function () {

    var dataArry = [];

    var countE = document.getElementsByTagName("span1");
    for(var i = 0;i<countE.length;i++)
    {
        var obj = [countE[i].id+"",parseInt($(countE[i]).attr("name"))];
        dataArry.push(obj)
    }

    $('#container').highcharts({
        chart: {
            type: 'pie',
            options3d: {
                enabled: true,
                alpha: 45,
                beta: 0
            }
        },
        title: {
            text: '教务管理系统系统管理员容量分布'
        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
        },
        plotOptions: {
            pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                depth: 35,
                dataLabels: {
                    enabled: true,
                    format: '{point.name}'
                }
            }
        },
        series: [{
            type: 'pie',
            name: '容量',
            data: [
                dataArry[0],
                dataArry[1],
                {
                    name: dataArry[2][0],
                    y: dataArry[2][1],
                    sliced: true,
                    selected: true
                },
                dataArry[3]
            ]
        }]
    });
});
</script>
</body>
</html>